package com.wrupple.muba.common.client.activity;

import com.wrupple.muba.common.domain.ApplicationItem;

@SuppressWarnings("serial")
public class DesktopPlace extends ApplicationItem {
	
	public static final String IMAGE_PARAMETER = "image";
	public static final String LABEL_PARAMETER = "name";
	

	public DesktopPlace(String place) {
		super(place);
	}

	public DesktopPlace(ApplicationItem place) {
		super.setActivity(place.getActivity());
		super.setChildren(place.getChildren());
		super.setElements(place.getElements());
		super.setProperties(place.getProperties());
	}

	public String getImage(){
		return getProperty(IMAGE_PARAMETER);
	}
	
	public void setImage(String image){
		setProperty(IMAGE_PARAMETER, image);
	}
	
	public String getName(){
		return getProperty(LABEL_PARAMETER);
	}

	public void setName(String value) {
		super.setProperty(LABEL_PARAMETER, value);
	}

}
